package cn.ll.service;

import java.util.List;

import cn.ll.po.Department;
import cn.ll.po.DepartmentDAO;

public class DepartmentService {
	
	DepartmentDAO departmentDAO = null;
	public List<Department> findAll(){
		List<Department> list = departmentDAO.findAll();
		return list;
	}
	public void save(Department department){
		departmentDAO.save(department);
	}
	
	public Department findById(int id){
		Department department = departmentDAO.findById(id);
		return department;
	}
	
	public void update(Department department){
		departmentDAO.update(department);
	}
	
	public DepartmentDAO getDepartmentDAO() {
		return departmentDAO;
	}
	public void setDepartmentDAO(DepartmentDAO departmentDAO) {
		this.departmentDAO = departmentDAO;
	}
}
